package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tmeone.erpone.entity.TIoWarehouse;
import com.tmeone.erpone.entity.TIomWarehouse;
import com.tmeone.erpone.mapper.TIoWarehouseMapper;
import com.tmeone.erpone.service.ITIoWarehouseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tmeone
 * @since 2021-04-20
 */
@Service
public class TIoWarehouseServiceImpl extends ServiceImpl<TIoWarehouseMapper, TIoWarehouse> implements ITIoWarehouseService {
    @Autowired
    private TIoWarehouseMapper warehouseMapper;

    @Override
    public IPage<TIoWarehouse> pageInAndOut(IPage<TIoWarehouse> page) {
        return warehouseMapper.pageInAndOut(page);
    }

    @Override
    public List<TIomWarehouse> getDetailsInAndOutByIomNo(String ioNo) {
        return warehouseMapper.getDetailsInAndOutByIomNo(ioNo);
    }

    @Override
    public List<String> selectIoType() {
        return warehouseMapper.selectIoType();
    }

    @Override
    public List<String> selectWName() {
        return warehouseMapper.selectWName();
    }

    @Override
    public List<TIoWarehouse> selectOne(String ioNo, int batch) {
        return warehouseMapper.selectOne(ioNo,batch);
    }
}
